package Class9_2;

import java.util.Scanner;

public class Work3Test {
    public static void main(String[] args) throws Exception{
        Work3 b=new Work3();
        Scanner in=new Scanner(System.in);
        System.out.println("输入老师姓名");
        String n=in.next();
        b.setName(n);
        System.out.println("输入学校");
        String s=in.next();
        b.setSchlool(s);
        try {
        System.out.println("输入年龄");
        int i=in.nextInt();
           b.a(i);
        }catch (Exception e){
           e.printStackTrace();
        }
        b.show();
    }
}
